// 导出路由规则
import Layout from "@/layout";
export default {
  path: "/content", // 路径
  name: "content",
  component: Layout, // 组件
  redirect: "/content",
  meta: {
    title: "内容",
  },
  // 配置二级路由表
  children: [
    {
      path: "adManage",
      name: "adManage",
      component: () => import("@/views/content/adManage"),
      meta: { title: "广告管理" },
      hidden: true,
      children: [
        {
          path: "manageList",
          name: "manageList",
          component: () => import("@/views/content/adManage/manageList"),
          meta: { title: "广告列表" },
          hidden: true,
        },
        {
          path: "manageLists",
          name: "manageLists",
          hidden: true,
          component: () => import("@/views/content/adManage/manageLists"),
          meta: { title: "广告列表1" },
        },
        {
          path: "addManage",
          name: "addManage",
          hidden: true,
          component: () =>
            import("@/views/content/adManage/manageList/addManage"),
          meta: { title: "添加广告" },
        },
      ],
    },
    {
      path: "notice",
      name: "notice",
      component: () => import("@/views/content/notice"),
      meta: { title: "公告管理", noCache: true },
      hidden: true,
      children: [
        {
          path: "noticeList",
          name: "noticeList",
          component: () => import("@/views/content/notice/noticeList"),
          meta: { title: "公告列表", noCache: true },
        },
        {
          path: "addNotice",
          name: "addNotice",
          hidden: true,
          component: () =>
            import("@/views/content/notice/noticeList/addNotice"),
          meta: { title: "添加公告" },
        },
        {
          path: "editNotice",
          name: "editNotice",
          hidden: true,
          component: () =>
            import("@/views/content/notice/noticeList/editNotice"),
          meta: { title: "编辑公告" },
        },
      ],
    },
    {
      path: "accountAppeal",
      name: "accountAppeal",
      component: () => import("@/views/content/accountAppeal"),
      meta: { title: "账号申诉", noCache: true },
      hidden: true,
      children: [
        {
          path: "noticeList",
          name: "noticeList",
          component: () => import("@/views/content/accountAppeal/noticeList"),
          meta: { title: "信息管理", noCache: true },
        },
      ],
    },
    {
      path: "complaint",
      name: "complaint",
      component: () => import("@/views/content/complaint"),
      meta: { title: "投诉建议", noCache: true },
      children: [
        {
          path: "reportInfo",
          name: "reportInfo",
          component: () => import("@/views/content/complaint/reportInfo"),
          meta: { title: "举报信息", noCache: true },
        },
        {
          path: "opinion",
          name: "opinion",
          component: () => import("@/views/content/complaint/opinion"),
          meta: { title: "意见建议", noCache: true },
        },
        {
          path: "complaintService",
          name: "complaintService",
          component: () => import("@/views/content/complaint/complaintService"),
          hidden: true,
          meta: { title: "投诉客服", noCache: true },
        },
      ],
    },
  ],
};
